<!DOCTYPE HTML>
<html>
<head>
<title>登录</title>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta charset="UTF-8">
</head>
<body  ng-app="gzy">
<div class="alert alert-danger"></div>
<div class="login">
	<h2>员工信息管理系统</h2>
	<div class="d1" ng-controller="con1" ng-show="s.status">
		<div class="login-top">
			<h1>员工登录</h1>
			<form name="form" novalidate>
				<input type="text" placeholder="工号" ng-model="v.username" required name="u">
				<img alt="" src="img/untitled1.png" width="12px" height="12px" ng-show="form.u.$valid">
				<img alt="" src="img/untitled.png" width="12px" height="12px" ng-hide="form.u.$valid">
				<input type="password" placeholder="密码" ng-model="v.password" required ng-minlength="6" ng-maxlength="20" name="p">
				<img alt="" src="img/untitled1.png" width="12px" height="12px" ng-show="form.p.$valid">
				<img alt="" src="img/untitled.png" width="12px" height="12px" ng-hide="form.p.$valid">
		    </form>
		    <div class="forgot">
		    	<input type="submit" value="登录" ng-click="login()" ng-disabled="form.$invalid">
		    </div>
		</div>
		<div class="login-bottom">
			<h3>管理员 &nbsp;<a href="#" ng-click="changeView1()">登录</a></h3>
		</div>
	</div>
	<div class="d2" ng-controller="con2" ng-hide="s.status">
		<div class="login-top">
			<h1>管理员登录</h1>
			<form name="form1" novalidate>
				<input type="text" placeholder="账号" ng-model="username1" required name="u1">
				<img alt="" src="img/untitled1.png" width="12px" height="12px" ng-show="form1.u1.$dirty && form1.u1.$valid">
				<img alt="" src="img/untitled.png" width="12px" height="12px" ng-hide="form1.u1.$dirty && form1.u1.$valid">
				<input type="password" placeholder="密码" ng-model="password1" required ng-minlength="6" ng-maxlength="20" name="p1">
				<img alt="" src="img/untitled1.png" width="12px" height="12px" ng-show="form1.p1.$dirty && form1.p1.$valid">
				<img alt="" src="img/untitled.png" width="12px" height="12px" ng-hide="form1.p1.$dirty && form1.p1.$valid">
		    </form>
		    <div class="forgot">
		    	<input type="submit" value="登录" ng-click="adminLogin()" ng-disabled="form1.$invalid&&!z">
		    </div>
		</div>
		<div class="login-bottom">
			<h3>员工 &nbsp;<a href="#" ng-click="changeView1()">登录</a></h3>
		</div>
	</div>
</div>
<div ng-view></div>
<script type="text/javascript" src="js/lib/angularjs1.6.0.js"></script>
<script type="text/javascript" src="js/lib/angularjs1.6.0-route.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/login.js"></script>
</body>
</html>